%% Default Makefile to compile Mex files
%% ========================================================================
%% $id$

%% Compile interface to show Markov chain in Matlab
% need to generate moc (depends of the qt version)
mex CXXFLAGS='$CXXFLAGS -std=gnu++0x -fpermissive -fPIC' -lQtGui -lQtCore -lgvc -lgraph...
    itf/itf_showMarkov.cpp...
    itf/itf_garrangement.cpp...
    itf/itf_mc.c...
    dstructs/path.c...
    itf/itf_state_transition.cpp...
    itf/itf_state_transition_moc.cpp...
    -Isim/...
    -Iitf/...
    -Idstructs/...
    -I3party/...
    -I"/usr/include"...
    -I"/usr/include/QtGui"...
    -I"/usr/include/QtCore"...
    -I"/usr/include/graphviz"...
    -L"/usr/lib64"...
    -g -v -cxx

%% Compile simulator
mex sim/sim_interface.c...
    dstructs/fibheap.c...
    dstructs/dlinkedlists.c...
    sim/sim_mc.c...
    3party/mt19937.c...
    -I3party/...
    -Idstructs/...
    -g -v

%% Compile the interface and algorithms for learning the GSMP
mex CFLAGS='$CFLAGS -lang-c-c++-comments -fPIC' CXXFLAGS='$CXXFLAGS -std=gnu++0x -fpermissive -fPIC' -lQtGui -lQtCore -lgvc -lgraph -lqwt...
    itf/itf_ptasa.cpp...
    itf/itf_garrangement.cpp...
    itf/itf_mc.c...
    itf/itf_debug.c...
    itf/itf_graph_xy.cpp...
    itf/itf_graph_xy_moc.cpp...
    itf/itf_state_transition.cpp...
    itf/itf_state_transition_moc.cpp...
    t3s/alg_ms.cpp...
    t3s/alg_ise.c...
    t3s/alg_pss.c...
    dstructs/prefix_tree.c...
    dstructs/dlinkedlists.c...
    dstructs/path.c...
    dstructs/pt_ext.cpp...
    -It3s/...
    -Isim/...
    -Idstructs/...
    -Iitf/...
    -I3party/...
    -I"/usr/include"...
    -I"/usr/include/QtGui"...
    -I"/usr/include/QtCore"...
    -I"/usr/include/qwt"...
    -I"/usr/include/graphviz"...
    -L"/usr/lib64"...
    -g -v -DDEBUG
    %-I"C:\Qt\4.7.3\include"...
    %-I"C:\Qt\4.7.3\include\QtGui"...
    %-I"C:\Qt\4.7.3\include\QtCore"...
    %-I"C:\Program Files (x86)\Graphviz2.26.3\include"...
    %-I"C:\Qwt-6.0.1\include"...
    %-L"C:\Qt\4.7.3\lib"...
    %-L"C:\Program Files (x86)\Graphviz2.26.3\lib\release\lib"...
    %-L"C:\Qwt-6.0.1\lib"...
    %-g -v %-DDEBUG
